package com.hainatong.shiphelper.module.QSHE.adapter;

import org.jetbrains.annotations.NotNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder;
import com.hainatong.shiphelper.R;
import com.hainatong.shiphelper.databinding.ItemFileViewBinding;
import com.hainatong.shiphelper.module.QSHE.entity.QSHETypeBean;

public class QSHETypeAdapter extends BaseQuickAdapter<QSHETypeBean, BaseDataBindingHolder<ItemFileViewBinding>>
{

    public QSHETypeAdapter()
    {
        super(R.layout.item_file_view);
    }

    @Override
    protected void convert(@NotNull BaseDataBindingHolder<ItemFileViewBinding> bindingHolder, QSHETypeBean typeEntity)
    {
        ItemFileViewBinding binding = bindingHolder.getDataBinding();

        if( binding != null )
        {
            binding.tvFunTitle.setText( typeEntity.getDict_value() );
        }
    }
}
